package routers

import (
	"shop/internal/handler"

	"github.com/gin-gonic/gin"
)

func init() {
	apiV1RouterFns = append(apiV1RouterFns, func(group *gin.RouterGroup) {
		tkUserAddressRouter(group, handler.NewTkUserAddressHandler())
	})
}

func tkUserAddressRouter(group *gin.RouterGroup, h handler.TkUserAddressHandler) {
	group.POST("/tkUserAddress", h.Create)
	group.DELETE("/tkUserAddress/:id", h.DeleteByID)
	group.POST("/tkUserAddress/delete/ids", h.DeleteByIDs)
	group.PUT("/tkUserAddress/:id", h.UpdateByID)
	group.GET("/tkUserAddress/:id", h.GetByID)
	group.POST("/tkUserAddress/list/ids", h.ListByIDs)
	group.POST("/tkUserAddress/list", h.List)
}
